//邓亚鑫-V2.2.1
// css reset 全局样式重置
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  word-break: break-all;
  word-wrap: break-word;

  &::-webkit-scrollbar {
    display: none;
  }
}

a {
  color: #c3161c;

  &:hover {
    color: #c3161c;
  }
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

b {
  font-weight: bold;
}

i {
  font-style: italic;
}

td {
  word-break: break-all;
  word-wrap: break-word;
}

body {
  line-height: 1;
  font-size: 16px;
  min-width: 1280px;
  font-family: PingFangSC, PingFangSC-Regular;
}

html {
  scrollbar-width: none;
}

body .ant-layout-header {
  background: transparent;
}

.warning-btn,
.warning-btn:hover,
.warning-btn:active,
.warning-btn:focus {
  background: #f0f2f5;
  color: #333333;
  border: 1px solid #d7dbe0;
}

// ol, ul {
// 	list-style: none;
// }
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  position: relative;
  padding-left: calc(100vw - 100%);

  #app {
    position: relative;
    width: 100vw;
    height: 100vh;
  }
}

// 全局设置滚动条
/*滚动条样式*/
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 8px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 8px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 4px;
  background: #dddddd;
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  border-radius: 0;
  background-color: transparent;
}

.scroll-bar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  //定义滚动条轨道 内阴影+圆角
  &::-webkit-scrollbar-track {
    background-color: transparent;
  }

  //定义滑块 内阴影+圆角
  &::-webkit-scrollbar-thumb {
    background-color: transparent;
  }

  overflow: auto;
}

.ant-pagination {
  width: 100%;
  text-align: right;
  color: #666;
  position: relative;
  margin: 16px 0 0 !important;

  .ant-pagination-item,
  .ant-pagination-item:hover,
  .ant-pagination-item-link,
  .ant-pagination-item-link:hover {
    // width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 6px;

    // border: 1px solid #dddddd;
    > a,
    a:visited,
    a:active,
    a:link,
    span {
      color: #666666;
    }
  }

  .ant-pagination-options-quick-jumper > input:hover,
  .ant-pagination-options-quick-jumper > input:focus {
    border-color: #ddd;
    box-shadow: none;
  }

  .ant-pagination-options-size-changer,
  .ant-pagination-options-size-changer:hover {
    > .ant-select-selector,
    .ant-select-selector:focus {
      background: #fff;
      border-radius: 6px;
      border-color: #ddd !important;
      color: #666666;
      box-shadow: none !important;

      > span {
        color: #666666;
      }
    }
  }

  .ant-pagination-item-active,
  .ant-pagination-item-active:hover {
    background-color: #d01837;
    border: 1px solid #fff;

    > a,
    a:active,
    a:visited,
    a:link {
      color: #fff;
    }
  }

  .ant-pagination-options-quick-jumper > input,
  .ant-pagination-item-link,
  .ant-pagination-options-size-changer > .ant-select-selector {
    border-radius: 6px;
    height: 32px;
    line-height: 32px;
  }

  .ant-pagination-total-text {
    line-height: 32px;
  }

  .ant-pagination-options > .ant-pagination-options-size-changer {
    height: 32px;

    // position: absolute;
    // top: 0;
    > .ant-select-selector,
    .ant-select-selection-item {
      height: 30px;
      line-height: 30px;
      border-radius: 6px;
    }
  }
}

.ant-table {
  max-height: 625px;
  overflow-y: auto;

  td {
    color: rgba(0, 0, 0, 0.65);
  }
}

.ant-cascader-menu {
  cursor: pointer;

  &::-webkit-scrollbar {
    display: block;
  }

  &::-webkit-scrollbar-thumb {
    background: #dddddd;
    border-radius: 2px;
  }
}
.show-scrollbar {
  // cursor: pointer;
  &::-webkit-scrollbar {
    display: block;
    // background: #;
  }

  &::-webkit-scrollbar-thumb {
    background: #dddddd;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-track {
    // background-color: #f5f5f5;
  }
}

// form表单
.form-style {
  padding: 24px;
  background-color: #ffffff;
  margin-bottom: 24px;

  .ant-form-inline .ant-form-item {
    margin-right: 16px;
  }

  .form-select {
    width: 146px;
    border-radius: 2px;

    .ant-select-selector {
      height: 32px !important;
      border-radius: 2px !important;
      line-height: 32px !important;
      place-items: center;
    }
  }

  .form-input {
    width: 272px;
    border-radius: 2px;
  }

  .form-input_365px {
    width: 365px;
    border-radius: 2px;
  }

  .form-btns {
    // float: right;
    margin-right: 0 !important;

    .ant-btn {
      margin-right: 16px;
      border-radius: 2px;
    }

    .form-btn {
      color: #ffffff;
      background-color: #c3161c;
      border: none;
      border-radius: 2px;
    }
  }
}

// table表格
.table-style {
  margin-top: 24px;
  padding: 24px;
  padding-top: 16px;
  background-color: #ffffff;

  div {
    &::-webkit-scrollbar {
      display: block;
    }

    &::-webkit-scrollbar-thumb {
      background: #dddddd;
      border-radius: 4px;
      width: 8px;
    }
  }

  .ant-table-body {
    overflow: auto !important;
  }

  .table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;

    .title {
      color: rgba(0, 0, 0, 0.85);
      font-size: 16px;
      font-weight: 500;
    }

    // 添加按钮
    .btn-block {
      display: inline-block;

      .head-export {
        font-size: 12px;
        margin-right: 9px;
      }
    }

    .add-btn {
      font-size: 14px;
      background-color: #c3161c;
      color: #ffffff;
      border: none;
      box-shadow: none;
      border-radius: 2px;

      .add-icon {
        font-size: 12px;
      }
    }

    .ant-btn {
      margin-left: 16px;
    }

    .add-btn:hover,
    .add-btn:focus,
    .add-btn:active {
      background-color: #c3161c;
      color: #ffffff;
    }
  }

  .table-text-color {
    color: #1890ff;
  }

  .ant-select-selection-item {
    // 兼容qq
    overflow: visible;
  }

  .ant-table td {
    white-space: nowrap;
  }

  .ant-table th {
    white-space: nowrap;
  }
}

.approval-flow-box {
  div {
    &::-webkit-scrollbar {
      display: block;
    }
    &::-webkit-scrollbar-thumb {
      background: #dddddd;
      border-radius: 4px;
      width: 8px;
    }
  }
}

//兼容360浏览器黑线
.ant-table table {
  border-collapse: collapse;
}

// // select选择
.ant-select-dropdown {
  .ant-select-dropdown-content {
    .ant-select-item {
      color: #666666;
    }

    .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
      background-color: #d01837;
      color: #ffffff;
    }

    .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
      background-color: #ffebe8;
      color: #d01837;
    }
    .ant-select-item-option-disabled {
      color: rgba(0, 0, 0, 0.25);
    }
  }
}

// 单行换行
.single-wrap {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.double-wrap {
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

// 文本框禁止用户
textarea.ant-input {
  resize: none;
}

// 确认框
.ant-modal-confirm-body .ant-modal-confirm-content {
  color: rgba(0, 0, 0, 0.65);
}
.ant-dropdown-menu-item:hover {
  background: #fcf1f2;
}
.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected {
  background: transparent;
}
.ant-tree li .ant-tree-node-content-wrapper:hover {
  background-color: #fcf1f2;
}

.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,
.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
  color: #fff;
  background: #faad14;
  padding: 3px;
  border-radius: 50%;
  font-size: 16px;
}

// 提示框
.ant-notification {
  z-index: 1110;

  // 强制换行
  .ant-notification-notice-description {
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap !important;
  }
}

// 预览图片
.preview-model {
  .ant-modal-body {
    height: 550px;
    overflow: auto;

    &::-webkit-scrollbar {
      display: none;
    }
  }
}

.ant-select-show-search.ant-select-single:not(.ant-select-customize-input) .ant-select-selector,
.ant-select-show-search.ant-select-single:not(.ant-select-customize-input) .ant-select-selector input {
  cursor: pointer;
}

.ant-upload-list-item-name {
  width: 90%;
}

// 表格行悬浮颜色
.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-thead > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
  background: rgba(255, 235, 232, 0.5);
}

.data-center-range {
  .ant-calendar-range-right .ant-calendar-date-input-wrap {
    margin-left: 0;
  }
}
.ant-calendar-range-middle {
  display: none;
  left: 260px;
  transform: translateX(0);
}
.ant-calendar-input-wrap {
  display: none;
}
.ant-radio-button-wrapper:last-child {
  margin-right: 20px;
}
.ant-calendar {
  margin-top: 40px;
}
.ant-pagination-item-active {
  border: 0 !important;
}

//印章管理适用范围弹框
.global-range-modal {
  .ant-modal-content {
    .ant-modal-header {
      border-bottom: none;
    }
    .ant-modal-body {
      padding: 0 24px;
      height: 414px;
    }

    .ant-modal-footer {
      border-top: none;
    }
  }
}

.long-range-modal {
  .ant-modal-content {
    .ant-modal-header {
      border-bottom: none;
    }
    .ant-modal-body {
      padding: 0 24px;
      height: 566px;
    }

    .ant-modal-footer {
      border-top: none;
    }
  }
}

//组织管理页面 树结构
.global-tree-popover {
  .ant-popover-content {
    .ant-popover-inner {
      border-radius: 5px;
      .ant-popover-inner-content {
        padding: 12px 0 10px 0;
        .tree-btn-item {
          width: 95px;
          height: 32px;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
        }
        .tree-btn-delete {
          color: #d40000;
        }

        .tree-btn-item:hover {
          background: #fcf1f2;
        }
      }
    }
  }
}

//用印申请弹窗
.ant-modal-content {
  border-radius: 2px;
}
.ant-modal-confirm-body .ant-modal-confirm-content {
  margin-top: 12px;
}

//树结构菜单
.ant-select-tree-dropdown {
  .ant-select-tree {
    .ant-select-tree-treenode-switcher-open {
      .ant-select-tree-treenode-switcher-close {
        .ant-select-tree-node-selected {
          background-color: #fcf1f2;
          color: #c3161c;
        }
      }
      .ant-select-tree-treenode-switcher-open {
        .ant-select-tree-node-selected {
          background-color: #fcf1f2;
          color: #c3161c;
        }
      }
    }
    .ant-select-tree-treenode-selected {
      .ant-select-tree-node-selected {
        background-color: #fcf1f2;
        color: #c3161c;
      }
    }
  }
}

.flex-layout {
  display: flex;
}
.flex-layout-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex-layout-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
// 表单提交底部样式
.submit-foot {
  width: calc(100vw - 208px);
  padding: 12px 24px;
  text-align: right;
  position: fixed;
  bottom: 0;
  z-index: 10;
  background: #ffffff;
  box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.03);
  .cancel-btn,
  .cancel-btn:hover,
  .cancel-btn:focus,
  .cancel-btn:active,
  .cancel-btn.active {
    color: rgba(0, 0, 0, 0.65);
    margin-right: 8px;
    border-radius: 2px;
  }
  .submit-btn {
    background-color: #c3161c;
    border-radius: 2px;
    border: none;
    color: #ffffff;
  }
}
// 自定义表单样式
.design-form-style,
.design-special-style {
  position: relative;
  .label {
    color: #333333;
  }
  .placeholder {
    color: rgba(0, 0, 0, 0.25);
  }
  .tips {
    font-size: 14px;
    color: #999999;
    padding-top: 8px;
  }
  .tips-label {
    padding-left: 8px;
  }
}
.design-form-style:after {
  content: '';
  position: absolute;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: #f2f2f2;
}
.required-icon {
  color: #ff3546;
}
.global-ant-table {
  .ant-table-thead > tr > th,
  // .surely-table-cell-content {
  //   display: flex;
  // }
  // :deep(.surely-table-cell-content) {
  //   display: inherit;
  // }
  .ant-table-body > .ant-table-tbody > .ant-table-row-hover,
  .surely-table-body .surely-table-row-hover {
    background: #ffffff;
  }

  .ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
    background: #ffffff;
  }
  .surely-table-column-title::before {
    display: none;
  }

  // img + 文字
  .name-perview {
    display: flex;
    align-items: center;

    img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      margin-right: 10px;
    }
  }

  // 隐藏下边框
  &.hide-bottom-border {
    .ant-table-placeholder {
      border-bottom: 0;
    }
  }
}

.seal-trustee-overlay {
  max-width: 700px;
}

.qrcode-tip-overlay {
  max-width: 700px;
}

.delete-modal {
  .ant-modal-body {
    padding: 32px 32px 0;
  }
  .ant-modal-footer {
    border: 0;
    padding: 24px 32px;
  }
}
